﻿
using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using System.Collections.Generic;
namespace Beauty
{
	public partial class Pos_Services : UIViewController
	{

		public Pos_Services () : base ("Pos_Services", null)
		{
		}

		public override void DidReceiveMemoryWarning ()
		{
			// Releases the view if it doesn't have a superview.
			base.DidReceiveMemoryWarning ();
			
			// Release any cached data, images, etc that aren't in use.
		}

		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
 		 
		 	 productLayout layout = new productLayout ();
		//	productLayoutList layoutList = new productLayoutList ();

			productCollectionViewController gridProducts = new productCollectionViewController (layout ,0);
		 
			gridProducts.View.Frame = new RectangleF (20, 20, 615, 650);
			gridProducts.View.Layer.CornerRadius = 5f;
			gridProducts.View.Layer.MasksToBounds = true;
			UIView viewRight = new UIView (new RectangleF(660, 20, 340, 650));
			viewRight.Layer.CornerRadius = 5f;
			viewRight.BackgroundColor = UIColor.White;
			UIView viewRightTop = new UIView (new RectangleF(0, 0, 340, 50));
			viewRightTop.BackgroundColor = UIColorExtensions.FromHexString ("#a1a1a1");
			UIImage imageCreate = UIImage.FromFile ("ic_createjs.png");
			UIButton cmdCreate = new UIButton (UIButtonType.Custom);
			cmdCreate.SetBackgroundImage (imageCreate, UIControlState.Normal);
			cmdCreate.Frame = new RectangleF (290, 0, 50, 50);
		 	


			UIImageView  imagePay = new UIImageView( UIImage.FromFile ("bt_pay0.png"));
			imagePay.Frame = new RectangleF (20, 580, 300, 50);

			UILabel lbTotal = new UILabel (new RectangleF (150, 590, 250, 30));
			lbTotal.Text = "Pay $0";
			lbTotal.TextColor = UIColor.White;
			UIView line = new UIView (new RectangleF (0, 550, 340, 1));


			 
			line.BackgroundColor = UIColorExtensions.FromHexString ("#b2b2b2");

			 
			View.BackgroundColor = UIColorExtensions.FromHexString ("#ebeef0");
			viewRight.Layer.BorderWidth = 1f;
			viewRight.Layer.BorderColor = UIColorExtensions.FromHexString("#b2b2b2").CGColor;


			viewRight.AddSubview (viewRightTop);
			viewRight.AddSubview (cmdCreate);
			viewRight.AddSubview (imagePay);
			viewRight.AddSubview (lbTotal);
			viewRight.AddSubview (line);
			View.Add (gridProducts.View);	
			 View.Add (viewRight);
		}
	}	
}

